# 定义一个公共的蓝图层
from flask import Blueprint
from app.api.v1 import user, book


# 定义创建蓝图函数
def create_blueprint_v1():
    bp_v1 = Blueprint('v1', __name__)

    # 把红图注册到蓝图中
    user.api.register(bp_v1)
    book.api.register(bp_v1)

    return bp_v1
